package com.yunshan.mp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunshan.common.annotation.Excel;
import com.yunshan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 预览页配置对象 mp_index_preview
 * 
 * @author yunshan
 * @date 2025-01-20
 */
@ApiModel(value = "MpIndexPreview", description = "预览页配置对象")
@EqualsAndHashCode(callSuper = true)
@Data
public class MpIndexPreview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 预览页图片 */
    @ApiModelProperty("预览页图片")
    @Excel(name = "预览页图片")
    private String previewImg;

    /** 展示开始时间 */
    @ApiModelProperty("展示开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "展示开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date onTime;

    /** 展示结束时间 */
    @ApiModelProperty("展示结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "展示结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date offTime;

    /** 状态0:上架 1下架 */
    @ApiModelProperty("状态0:上架 1下架")
    @Excel(name = "状态0:上架 1下架")
    private Integer status;

    /** 是否删除0:未删除,1:删除 */
    @ApiModelProperty("是否删除0:未删除,1:删除")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer isDeleted;

    /** 开始时间 */
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date startTime;

    /** 结束时间 */
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date endTime;
}
